package com.yh.homestay.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CapitalGoodsExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CapitalGoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberIsNull() {
            addCriterion("goods_number is null");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberIsNotNull() {
            addCriterion("goods_number is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberEqualTo(String value) {
            addCriterion("goods_number =", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberNotEqualTo(String value) {
            addCriterion("goods_number <>", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberGreaterThan(String value) {
            addCriterion("goods_number >", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberGreaterThanOrEqualTo(String value) {
            addCriterion("goods_number >=", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberLessThan(String value) {
            addCriterion("goods_number <", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberLessThanOrEqualTo(String value) {
            addCriterion("goods_number <=", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberLike(String value) {
            addCriterion("goods_number like", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberNotLike(String value) {
            addCriterion("goods_number not like", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberIn(List<String> values) {
            addCriterion("goods_number in", values, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberNotIn(List<String> values) {
            addCriterion("goods_number not in", values, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberBetween(String value1, String value2) {
            addCriterion("goods_number between", value1, value2, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberNotBetween(String value1, String value2) {
            addCriterion("goods_number not between", value1, value2, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNull() {
            addCriterion("goods_name is null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNotNull() {
            addCriterion("goods_name is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameEqualTo(String value) {
            addCriterion("goods_name =", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotEqualTo(String value) {
            addCriterion("goods_name <>", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThan(String value) {
            addCriterion("goods_name >", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
            addCriterion("goods_name >=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThan(String value) {
            addCriterion("goods_name <", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThanOrEqualTo(String value) {
            addCriterion("goods_name <=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLike(String value) {
            addCriterion("goods_name like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotLike(String value) {
            addCriterion("goods_name not like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIn(List<String> values) {
            addCriterion("goods_name in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotIn(List<String> values) {
            addCriterion("goods_name not in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameBetween(String value1, String value2) {
            addCriterion("goods_name between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotBetween(String value1, String value2) {
            addCriterion("goods_name not between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceIsNull() {
            addCriterion("goods_price is null");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceIsNotNull() {
            addCriterion("goods_price is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceEqualTo(Double value) {
            addCriterion("goods_price =", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceNotEqualTo(Double value) {
            addCriterion("goods_price <>", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceGreaterThan(Double value) {
            addCriterion("goods_price >", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("goods_price >=", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceLessThan(Double value) {
            addCriterion("goods_price <", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceLessThanOrEqualTo(Double value) {
            addCriterion("goods_price <=", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceIn(List<Double> values) {
            addCriterion("goods_price in", values, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceNotIn(List<Double> values) {
            addCriterion("goods_price not in", values, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceBetween(Double value1, Double value2) {
            addCriterion("goods_price between", value1, value2, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceNotBetween(Double value1, Double value2) {
            addCriterion("goods_price not between", value1, value2, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateIsNull() {
            addCriterion("goods_buy_date is null");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateIsNotNull() {
            addCriterion("goods_buy_date is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateEqualTo(Date value) {
            addCriterion("goods_buy_date =", value, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateNotEqualTo(Date value) {
            addCriterion("goods_buy_date <>", value, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateGreaterThan(Date value) {
            addCriterion("goods_buy_date >", value, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateGreaterThanOrEqualTo(Date value) {
            addCriterion("goods_buy_date >=", value, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateLessThan(Date value) {
            addCriterion("goods_buy_date <", value, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateLessThanOrEqualTo(Date value) {
            addCriterion("goods_buy_date <=", value, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateIn(List<Date> values) {
            addCriterion("goods_buy_date in", values, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateNotIn(List<Date> values) {
            addCriterion("goods_buy_date not in", values, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateBetween(Date value1, String value2) {
            addCriterion("goods_buy_date between", value1, value2, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsBuyDateNotBetween(Date value1, Date value2) {
            addCriterion("goods_buy_date not between", value1, value2, "goodsBuyDate");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthIsNull() {
            addCriterion("goods_use_month is null");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthIsNotNull() {
            addCriterion("goods_use_month is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthEqualTo(Integer value) {
            addCriterion("goods_use_month =", value, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthNotEqualTo(Integer value) {
            addCriterion("goods_use_month <>", value, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthGreaterThan(Integer value) {
            addCriterion("goods_use_month >", value, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_use_month >=", value, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthLessThan(Integer value) {
            addCriterion("goods_use_month <", value, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthLessThanOrEqualTo(Integer value) {
            addCriterion("goods_use_month <=", value, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthIn(List<Integer> values) {
            addCriterion("goods_use_month in", values, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthNotIn(List<Integer> values) {
            addCriterion("goods_use_month not in", values, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthBetween(Integer value1, Integer value2) {
            addCriterion("goods_use_month between", value1, value2, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsUseMonthNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_use_month not between", value1, value2, "goodsUseMonth");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateIsNull() {
            addCriterion("goods_breakage_rate is null");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateIsNotNull() {
            addCriterion("goods_breakage_rate is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateEqualTo(Double value) {
            addCriterion("goods_breakage_rate =", value, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateNotEqualTo(Double value) {
            addCriterion("goods_breakage_rate <>", value, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateGreaterThan(Double value) {
            addCriterion("goods_breakage_rate >", value, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateGreaterThanOrEqualTo(Double value) {
            addCriterion("goods_breakage_rate >=", value, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateLessThan(Double value) {
            addCriterion("goods_breakage_rate <", value, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateLessThanOrEqualTo(Double value) {
            addCriterion("goods_breakage_rate <=", value, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateIn(List<Double> values) {
            addCriterion("goods_breakage_rate in", values, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateNotIn(List<Double> values) {
            addCriterion("goods_breakage_rate not in", values, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateBetween(Double value1, Double value2) {
            addCriterion("goods_breakage_rate between", value1, value2, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsBreakageRateNotBetween(Double value1, Double value2) {
            addCriterion("goods_breakage_rate not between", value1, value2, "goodsBreakageRate");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeIsNull() {
            addCriterion("goods_type is null");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeIsNotNull() {
            addCriterion("goods_type is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeEqualTo(Integer value) {
            addCriterion("goods_type =", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeNotEqualTo(Integer value) {
            addCriterion("goods_type <>", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeGreaterThan(Integer value) {
            addCriterion("goods_type >", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_type >=", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeLessThan(Integer value) {
            addCriterion("goods_type <", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeLessThanOrEqualTo(Integer value) {
            addCriterion("goods_type <=", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeIn(List<Integer> values) {
            addCriterion("goods_type in", values, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeNotIn(List<Integer> values) {
            addCriterion("goods_type not in", values, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeBetween(Integer value1, Integer value2) {
            addCriterion("goods_type between", value1, value2, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_type not between", value1, value2, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaIsNull() {
            addCriterion("goods_area is null");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaIsNotNull() {
            addCriterion("goods_area is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaEqualTo(String value) {
            addCriterion("goods_area =", value, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaNotEqualTo(String value) {
            addCriterion("goods_area <>", value, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaGreaterThan(String value) {
            addCriterion("goods_area >", value, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaGreaterThanOrEqualTo(String value) {
            addCriterion("goods_area >=", value, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaLessThan(String value) {
            addCriterion("goods_area <", value, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaLessThanOrEqualTo(String value) {
            addCriterion("goods_area <=", value, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaLike(String value) {
            addCriterion("goods_area like", value, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaNotLike(String value) {
            addCriterion("goods_area not like", value, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaIn(List<String> values) {
            addCriterion("goods_area in", values, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaNotIn(List<String> values) {
            addCriterion("goods_area not in", values, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaBetween(String value1, String value2) {
            addCriterion("goods_area between", value1, value2, "goodsArea");
            return (Criteria) this;
        }

        public Criteria andGoodsAreaNotBetween(String value1, String value2) {
            addCriterion("goods_area not between", value1, value2, "goodsArea");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}